﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Privileges.aspx.cs" Inherits="CPPEI.Coolzon.ManagementCenter.Privileges" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="gvUserPrivilege" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="Id" Visible="False">
                 <ItemTemplate>
                     <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                 </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="UserId" Visible="False">
                 <ItemTemplate>
                     <asp:Label ID="lblUserId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "userId") %>'></asp:Label>
                 </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编码">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Code") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="名称">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Name") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="类型">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "Type") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="设置">
                    <ItemTemplate>
                        <asp:CheckBox ID="chbPrivilege" runat="server" Checked='<%# DataBinder.Eval(Container.DataItem, "IsHad") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    
        <div style="width: 242px">
            <asp:Button ID="btnOK" runat="server" OnClick="btnOK_Click" Text="确定" />
            <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="返回" />
        </div>
    
    </div>
    </form>
</body>
</html>
